package com.yjd.bi.comm.utils;

import com.yjd.comm.util.DateUtil;
import com.yjd.comm.util.FrameUtil;

public class BiDateUtil {

    public static String initBiDate()throws Exception{
    	return DateUtil.timestampToDateString(FrameUtil.getTime() - 86400, DateUtil.PATTERN_yyyy_MM_dd);
    }

    public static String initBefore30BiDate() throws Exception {
        return DateUtil.timestampToDateString(FrameUtil.getTime() - 2678400, DateUtil.PATTERN_yyyy_MM_dd);
    }
    
    public static String getT1Date()throws Exception{
    	return DateUtil.timestampToDateString(FrameUtil.getTime() + 86400, DateUtil.PATTERN_yyyy_MM_dd);
    }
    
    public static String getT7Date()throws Exception{
    	return DateUtil.timestampToDateString(FrameUtil.getTime() + 86400*7, DateUtil.PATTERN_yyyy_MM_dd);
    }

}
